function goPage(url) {
  let urllist = ["pages/index/index", "pages/my/index"];
  if (!urllist.includes(url)) {
    uni.navigateTo({ url: url });
  } else {
    uni.switchTab({ url: url });
  }
}

export { goPage };
